//
// Created by he on 2023/9/15.
//

#ifndef USB2UART_H
#define USB2UART_H

#include "at32f415_board.h"
#include "dap_main.h"

#define USB2UART_PORT USART2
#define USB2UART2_PORT USART3
#define USART_BUFFER_SIZE 1024

extern uint8_t usart_rx_buffer[2][USART_BUFFER_SIZE];

void usart_send_data(uint8_t *send_data, uint16_t len, uint8_t cdc_id);
void uartx_preinit(void);
void uartx2_preinit(void);

#endif//USB2UART_H
